package com.okami.clazz.one;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * @author: TanJingyu
 * @create: 2021-03-10 16:14
 **/
class Test {
    public static void main(String[] args) throws ClassNotFoundException {
//        Class<Demo> clazz = Demo.class;

        Class clazz = Class.forName("com.okami.clazz.one.Demo");
        Method[] declaredMethods = clazz.getDeclaredMethods();

        Field[] declaredFields = clazz.getDeclaredFields();

        Constructor[] declaredConstructors = clazz.getDeclaredConstructors();


    }
}
